Tthe LLM Compressor export modification in mixed‑precision mode: the original format unifies all layers as Linear, causing vLLM inference to fail during parsing. - #2128
Open
1607662794 wants to merge 2 commits into
Conversation
…ication: the original format unifies all layers as Linear, causing vLLM inference to fail during parsing.
Contributor
|
@Yi4Liu @WeiweiZhang1 please have a review |
yiliu30
requested changes
Aug 7, 2026
|
|
||
| quant_format = _get_quant_format(model) | ||
| quantization_config = QuantizationConfig.from_pretrained(model, format=quant_format) | ||
| model.config.quantization_config = quantization_config.to_dict() |
Contributor
There was a problem hiding this comment.
Hi @1607662794, we’ve handled the mixed-precision case this way. Could you follow the same approach here as well? Thanks!
auto-round/auto_round/export/export_to_llmcompressor/export_to_fp.py
Lines 313 to 322 in 98f2cdb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR fixes an issue where the LLM Compressor exports all layers as Linear type in mixed‑precision mode, regardless of their original type. This causes vLLM to fail during model parsing and prevents inference from starting.
Type of Change
Bug fix
Checklist Before Submitting
/azp run Unit-Test-CUDA-AutoRound.